<%@page contentType="text/plain" pageEncoding="UTF-8" import="com.mop.dinnerbook.dao.*,java.util.*,com.mop.dinnerbook.bean.*,java.net.*"%>
<%
    Manager manager = (Manager)session.getAttribute("manager");
    if(manager != null){
        int mid = Integer.parseInt(request.getParameter("mid"));
        ManageDAO dao = new ManageDAO();
        boolean result = dao.deleteMember(mid);
        if(result == false){
            out.write("删除失败，该员工已经被删除！");
        }else{
            out.write("删除成功！");
        }
    }else{
            out.write("删除失败，权限不足！");
    }
%>
